import Vue from 'vue'
import Vuex from 'vuex'

import auth from './auth'
import certificate from './certificate'
import order from './order'
import role from './role'
import user from './user'
import goods from './goods'
import goodsclass from './goods/goodsclass'
import goodsattr from './goods/goodsattr'
import recommend from './goods/recommend'
import article from './article'
import bills from './goods/bills'
import layout from './layout'
import advert from './advert'
import setting from './setting'
import authentication from './authentication'
import sms from './sms'
import inmail from './inmail'
import favorite from './favorite'
import opinion from './opinion'
import address from './address'
import fund from './fund'
import integral from './integral'
import mallgoods from './integralmall/goods/index'
import mallgoodsclass from './integralmall/goodsclass/index'
import mallorder from './integralmall/order/index'
import currency from './currency'
import fundlog from './fundlog'
import currencylog from './currencylog'
import integrallog from './integrallog'
import withdrawcash from './withdrawcash'
import cause from './cause'
import bank from './bank'

import app from './app'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    bank,
    auth,
    certificate,
    order,
    role,
    user,
    goods,
    goodsclass,
    goodsattr,
    recommend,
    article,
    bills,
    layout,
    advert,
    setting,
    app,
    authentication,
    sms,
    inmail,
    favorite,
    opinion,
    address,
    fund,
    integral,
    mallgoods,
    mallgoodsclass,
    mallorder,
    currency,
    fundlog,
    currencylog,
    integrallog,
    withdrawcash,
    cause
  }
})
